package com.healthy.assessment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.assessment.mapper.UserSuggestionsMapper;
import com.healthy.assessment.domain.UserSuggestions;
import com.healthy.assessment.service.IUserSuggestionsService;

/**
 * 评估或监测Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class UserSuggestionsServiceImpl implements IUserSuggestionsService 
{
    @Autowired
    private UserSuggestionsMapper userSuggestionsMapper;

    /**
     * 查询评估或监测
     * 
     * @param id 评估或监测主键
     * @return 评估或监测
     */
    @Override
    public UserSuggestions selectUserSuggestionsById(Long id)
    {
        return userSuggestionsMapper.selectUserSuggestionsById(id);
    }

    /**
     * 查询评估或监测列表
     * 
     * @param userSuggestions 评估或监测
     * @return 评估或监测
     */
    @Override
    public List<UserSuggestions> selectUserSuggestionsList(UserSuggestions userSuggestions)
    {
        return userSuggestionsMapper.selectUserSuggestionsList(userSuggestions);
    }

    /**
     * 新增评估或监测
     * 
     * @param userSuggestions 评估或监测
     * @return 结果
     */
    @Override
    public int insertUserSuggestions(UserSuggestions userSuggestions)
    {
        return userSuggestionsMapper.insertUserSuggestions(userSuggestions);
    }

    /**
     * 修改评估或监测
     * 
     * @param userSuggestions 评估或监测
     * @return 结果
     */
    @Override
    public int updateUserSuggestions(UserSuggestions userSuggestions)
    {
        return userSuggestionsMapper.updateUserSuggestions(userSuggestions);
    }

    /**
     * 批量删除评估或监测
     * 
     * @param ids 需要删除的评估或监测主键
     * @return 结果
     */
    @Override
    public int deleteUserSuggestionsByIds(Long[] ids)
    {
        return userSuggestionsMapper.deleteUserSuggestionsByIds(ids);
    }

    /**
     * 删除评估或监测信息
     * 
     * @param id 评估或监测主键
     * @return 结果
     */
    @Override
    public int deleteUserSuggestionsById(Long id)
    {
        return userSuggestionsMapper.deleteUserSuggestionsById(id);
    }
}
